package com.gxy.learn.repository;

import lombok.Data;

/**
 * Description(这里用一句话描述这个方法的作用)
 * author: Gao xueyong
 * Create at: 2022/3/7 下午6:56
 */
public class UserInfo {
    private String userName;
    private DataInfo data;

    public UserInfo() {
    }

    public UserInfo(String userName, DataInfo data) {
        this.userName = userName;
        this.data = data;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public DataInfo getData() {
        return data;
    }

    public void setData(DataInfo data) {
        this.data = data;
    }
}

class  DataInfo{
    private String hobby;

    public DataInfo() {
    }

    public DataInfo(String hobby) {
        this.hobby = hobby;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }
}